home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / dsp / dr.bub / 96000.lha / 96000 / appb / b19.asm < prev   
Assembly Source File  |  1992-04-28  |  1KB  |  26 lines

  1. ; This program was originally published in the Motorola DSP96002 Users Manual
  2. ; and is provided under a DISCLAIMER OF WARRANTY available from Motorola DSP
  3. ; Operation, 6501 William Cannon Drive West, Austin, Texas 78735-8598.  For
  4. ; more information, refer to the DSP96002 Users Manual, Appendix B, DSP
  5. ; Benchmarks.
  6. ;
  7. ; B.1.9    Complex Update  
  8. ;   dr + jdi = ( cr + jci ) + ( ar + jai ) * ( br + jbi ) 
  9. ;   dr = cr + ar * br - ai * bi      R0 ? a   R4 ? b    R1 ? c   R ? d 
  10. ;   di = ci + ar * bi + ai * br 
  11. ;                                                           Program    ICycles
  12. ;                                                           Words 
  13.        move                                      y:(r1),d1.s  ;    1          1 
  14.        move                          x:(r0),d5.s y:(r4),d6.s  ;    1          1 
  15.        fmpy.s d6,d5,d2               x:(r4),d4.s y:(r0),d7.s  ;    1          1 
  16.        fmpy d4,d7,d2  fadd.s d2,d1   x:(r1),d0.s              ;    1          1 
  17.        fmpy d4,d5,d2  fadd.s d2,d1                            ;    1          1 
  18.        fmpy d6,d7,d2  fadd.s d2,d0                d1.s,y:(r2) ;    1          1 
  19.                       fsub.s d2,d0                            ;    1          1 
  20.        move                          d0.s,x:(r2)              ;    1          1 
  21. ;                                                             ;    ---        --- 
  22. ;                                                         Totals:      8          8 
  23. ;                                                                 (    7          7) 
  24.